<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of VContests
 *
 * @author andrea
 */
class VContests_vidwiz extends View_vidwiz{
    
    public function getContestsPage($view){
        $this->assignVar("activeContests", $activeContests);
        $debug = USingleton_vidwiz::getInstances("UDebug_vidwiz");
        $this->assignVar ($view, "true");
        $menu = $this->fetchTpl('vidwiz_vid_contests_page');
        return $menu;
    }
    
    public function getContestsInfoView($info,$contestid){
        $debug = USingleton_vidwiz::getInstances("UDebug_vidwiz");
        $this->assignVar("users",$info["users"]);
        $this->assignVar("data", $info['videos']);
        $this->assignVar("contestid", $contestid);
        $this->assignVar("maxRow","4");
        $results = $this->fetchTpl("vidwiz_vid_contests_results");
        $this->assignVar("baseInfos", $info['baseInfos'][0]);
        $this->assignVar("results",$results);
        
        $this->assignVar("charts",$info['charts']);
        $this->assignVar("winnerSelection", $info['baseInfos'][0]['winnerSelection']);
        $menu = $this->fetchTpl("vidwiz_vid_contestsInfo");
        return $menu;
    }
    
    public function getSubscribedContestsNoVideoView($contests){
        $this->assignVar("subscribedContestsNoVideo", $contests);
        $return = $this->fetchTpl("vidwiz_vid_contests_toUpload");
        return $return;
    }
    
    public function getActiveContests($contests){
        $this->assignVar("activeContests", $contests);
        $return = $this->fetchTpl("vidwiz_vid_contests_activeContests");
        return $return;
    }
    
}

?>
